import request from '@/config/axios'

// 平台资金汇总
export const getPlatformBalance = async () => {
  return await request.get({ url: `/pay/splitting/merchant/platform-balance` })
}

// 平台资金提现
export const withdraw = async (amount: number | string) => {
  const data = {
    amount: amount
  }
  return await request.post({
    url: `/pay/splitting/merchant/platform-withdraw`,
    data
  })
}
